package com.itqf.controller;

import com.itqf.service.WarehouseProductService;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description:
 * @Company: 千锋互联
 * @Author: 李丽婷
 * @Date: 2021/1/7
 * @Time: 下午3:47
 */
@RestController
public class WarehouseProductController {

    @Resource
    private WarehouseProductService warehouseProductService;

    @RequestMapping("/incr/{pId}/{count}")
    public  int incrNum(@PathVariable("pId")int pid,@PathVariable("count") int c){
        return warehouseProductService.update(pid,c);
    }

}
